package org.example.service.impl;

import org.example.entity.Players;
import org.example.mapper.PlayersMapper;
import org.example.service.PlayersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PlayerServiceImpl implements PlayersService {
    @Autowired
    private PlayersMapper playersMapper;



    @Override
    public List<Players> getList(String pname,Integer cid,Integer pageNo) {
        return playersMapper.getList(pname,cid,pageNo);
    }

    @Override
    public int add(Players players) {
        return playersMapper.add(players);
    }


    @Override
    public int del(Integer pid) {
        return playersMapper.del(pid);
    }

    @Override
    public Players get(Integer pid) {
        return playersMapper.get(pid);
    }

    @Override
    public int update(Players players) {
        return playersMapper.update(players);
    }
}
